import { get } from "js-cookie";
import service from "./request";

export default {
  upload: (data) => service.post(`/api/upload`, data),
  add: (params) => service.get(`/api/add`, { params }),
  get: (params) => service.get(`/api/get`, { params }),
  delete: (data) => service.post(`/api/delete`, data),

  getCurrentPageBatchList: (params) =>
    service.get(`/api/getCurrentPageBatchList`, { params }),
};
